package com.example.tkmapper.proxy;

import com.example.tkmapper.service.SmsService;

/**
 * @author huxiao
 * @description SendSmsProxy 发送短信代理类
 * @date 2022/3/29 3:42 下午
 */
public class SendSmsProxy implements SmsService {

    final SmsService service;

    public SendSmsProxy(SmsService service) {
        this.service = service;
    }

    @Override
    public String send(String string) {
        System.out.println("短信发送代理类 - 发送短信前dosomething");
        service.send(string);
        System.out.println("短信发送代理类 - 发送短信后dosomething");
        return null;
    }

}
